package com.wss.day02.test02;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/21
 */
public class Director extends Employee {
    private double transportAllowance;

    public Director(String name, String address, double baseSalary, double transportAllowance) {
        super(name, address, baseSalary);
        this.transportAllowance = transportAllowance;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("交通补助：" + transportAllowance);
        System.out.println("职位：董事");
    }

    public double getTransportAllowance() {
        return transportAllowance;
    }

    public void setTransportAllowance(double transportAllowance) {
        this.transportAllowance = transportAllowance;
    }
}